package abc.com.abc.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;

import java.util.List;

import abc.com.abc.R;
import abc.com.abc.adapter.SelectAdapter;
import abc.com.abc.bean.UserBean;
import abc.com.abc.utils.DBUtils;

public class GlySelectActivity extends AppCompatActivity {

    private RecyclerView recyclerView;
    private RecyclerView.Adapter adapter;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        List<UserBean> list = DBUtils.getInstance(this).getAllUserInfo();
        setContentView(R.layout.activity_gly_select);
        recyclerView = findViewById(R.id.rv_select);
        adapter = new SelectAdapter(this,list);
        recyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL,false));
        recyclerView.setAdapter(adapter);

    }


}
